﻿using System;
using System.Collections.Generic;
using BGM.Domain.DTO;

namespace BGM.Sensors.MeasuringDevice
{
    public delegate void MessageRecievedEventhandler(object sender, MessageRecievedEventArgs e);
    public interface IMeasuringDevice : IDisposable
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="o">a string with a serial port name or a Stream object</param>
        /// <returns></returns>
        List<Reading> GetReadings(object o);
        event MessageRecievedEventhandler MessageRecieved;
        string Name { get; }
        string Description { get; }

    }
}
